<?php

class Application_Model_ImputacionElectricidad extends Sgit_Model
{  
    protected $_name = 'imputacion_electricidad';



    function getLastImputacion($id_zona){
        
        $select=$this->getAdapter()->select();
        
        $select->from(array($this->_name))
            ->where("id_zona = ?", $id_zona, 'INTEGER')
            ->order(array('anio desc','mes desc'))
            ->limit(1);
        return $this->getAdapter()->fetchRow($select);

    }

   
}  




